import request from '@/router/axios';

export const getList = (current, size, params) => {
  return request({
    url: '/api/blade-system/classfl/list',
    method: 'get',
    params: {
      ...params,
      current,
      size,
    }
  })
}

export const addage = (params) => {
    return request({
      url: '/api/blade-system/classfl/Insertvage',
      method: 'post',
      params:{
        ...params
      }
    })
  }
  
  export const addRestock = (params) => {
    return request({
      url: '/api/blade-system/classfl/addRestock',
      method: 'post',
      data:params
    })
  }

  export const addRestockBatch = (params) => {
    return request({
      url: '/api/blade-system/classfl/addRestockBatch',
      method: 'post',
      data:params
    })
  }

  export const uploadImg = (formdata) => {
    return request({
      url: '/api/blade-system/classfl/uploadImg',
      method: 'post',
      data:formdata
    })
  }

  export const delimg = (formdata) => {
    return request({
      url: '/api/blade-system/classfl/delimg',
      method: 'post',
      data:formdata
    })
  }
 
  export const removegoods = (formdata) => {
    return request({
      url: '/api/blade-system/classfl/removegoods',
      method: 'post',
      data:formdata
    })
  }

  export const updatebasicdt = (formdata) => {
    return request({
      url: '/api/blade-system/classfl/updateBasicdt',
      method: 'post',
      data:formdata
    })
  }

  export const getBatchDetail = (formdata) => {
    return request({
      url: '/api/blade-system/batchdetail/getBatchDetail',
      method: 'post',
      data:formdata
    })
  }

  export const updateVege = (formdata) => {
    return request({
      url: '/api/blade-system/classfl/updateVege',
      method: 'post',
      data:formdata
    })
  }
  export const getuserList = (formdata) => {
    return request({
      url: '/api/WxwebController/getUsertemplateIds',
      method: 'post',
      data:formdata
    })
  }
  
  

  